import request from '@/utils/request'

export function queryPointParams(query) {
  return request({
    url: '/basic/pointParam/queryPointParams',
    method: 'get',
    params: query
  })
}

export function queryCrolParam(query) {
  return request({
    url: '/basic/pointParam/queryCrolParam',
    method: 'get',
    params: query
  })
}

export function savePointParam(query) {
  return request({
    url: '/basic/pointParam/saveAjax',
    method: 'get',
    params: query
  })
}

// 查询点位参数关联列表
export function listPointParam(query) {
  return request({
    url: '/basic/pointParam/list',
    method: 'get',
    params: query
  })
}

// 查询点位参数关联详细
export function getPointParam(id) {
  return request({
    url: '/basic/pointParam/' + id,
    method: 'get'
  })
}

// 新增点位参数关联
export function addPointParam(data) {
  return request({
    url: '/basic/pointParam',
    method: 'post',
    data: data
  })
}

export function updateGyxy(query) {
  return request({
    url: '/basic/pointParam/updateGyxy',
    method: 'get',
    params: query
  })
}

// 修改点位参数关联
export function updatePointParam(data) {
  return request({
    url: '/basic/pointParam',
    method: 'put',
    data: data
  })
}

// 删除点位参数关联
export function delPointParam(id) {
  return request({
    url: '/basic/pointParam/' + id,
    method: 'delete'
  })
}

// 导出点位参数关联
export function exportPointParam(query) {
  return request({
    url: '/basic/pointParam/export',
    method: 'get',
    params: query
  })
}
